package com.dl.base.databind

import android.widget.ImageView
import androidx.annotation.ColorInt
import androidx.databinding.BindingAdapter


@BindingAdapter("tint", requireAll = false)
fun tint(imageView: ImageView, @ColorInt color: Int?) {
    if (color != null) {
        imageView.setColorFilter(color)
    }
}